$(function(){
    showCondition(true);
	
    paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
    if(typeof(paramTabPage[tabId].previous)=="undefined"){
		$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].title);
	}else{
		if(paramTabPage[tabId].monitorType=="depGroup"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].depGroupName+"指标");
		}else if(paramTabPage[tabId].monitorType=="mdc"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].mdcCode+"指标");
		}else if(paramTabPage[tabId].monitorType=="adrg"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].adrgCode+"指标");
		}else if(paramTabPage[tabId].monitorType=="drgs"){
			$('#'+tabId+' #hosp-title').append(paramTabPage[tabId].drgCode+"指标");
		}
	}
	
	
	getQuotas("ybbDisLineDep", loadData, "dislinedepallhosp-ul","dep");
	
	function loadData(totalQuota){
		// 全院指标 (1.Hosp 2.All)  参数 4.为jsp中的div的id 5.jsp中ul的id
		loadHospQuota(paramTabPage[tabId].monitorType,totalQuota,"dislinedepallhospQuotasId","dislinedepallhosp-ul","ybDisLineDepTotal");
		// 加载指标的div 参数 3.为jsp中的div的id 4.jsp中ul的id
		loadDRGsQuota(totalQuota,"dep","科室","dislinedepListQuotasId","dislinedepList-ul");
	    // 科室组指标的数据加载 
	    loadDRGsQuotaData(totalQuota,"dep",true,"ybDisLineDepDetail");
	}
});

